﻿@using System.Data
@using ZoomLa.BLL
@using ZoomLa.BLL.Helper
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    B_User buser = new B_User();
    Model.cols = 6;
}
<div id="EGV">
    <table class="table table-striped table-bordered">
        <tr>
            <td>选择</td>
            <td>主题</td>
            <td>收件人</td>
            <td>抄送人</td>
            <td>发送日期</td>
            <td>操作</td>
        </tr>
        @foreach (DataRow dr in Model.dt.Rows)
        {
            <tr>
                <td><input type="checkbox" name="idchk" value="@dr["msgid"]" /></td>
                <td>@dr["Title"]</td>
                <td>@buser.GetUserNameByIDS(DataConverter.CStr(dr["Incept"]))</td>
                <td>@buser.GetUserNameByIDS(DataConverter.CStr(dr["CCUser"]))</td>
                <td>@DateHelper.ToDate(dr["PostDate"])</td>
                <td>
                    <a href="MessageRead?read=1&id=@dr["msgid"]"><i class="fa fa-eye"></i>阅读</a>
                    <a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["MsgID"]', url: 'message_RealDel', confirm: '你确定将该数据彻底删除吗' });"><i class="fa fa-trash">删除</i></a>
                    @*<a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["MsgID"]', url: 'message_del', confirm: '你确定将该数据彻底删除吗' });"><i class="fa fa-trash">删除</i></a>*@
                    <a href="MessageSend?id=@dr["msgid"]"><i class="fa fa-pencil"></i>编辑</a>
                </td>
            </tr>
        }
        @Html.Partial("_page",Model)
    </table>
</div>
